<template>
  <div class="news">
    <h3>News</h3>
    <router-link tag="button" to="/home/news/newsDetail?title=娱乐">娱乐新闻</router-link>
    <router-link tag="button" to="/home/news/newsDetail?title=热点">热点新闻</router-link>
    <router-link tag="button" to="/home/news/newsDetail?title=时事">时事新闻</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "News",
  mounted() {
    console.log('News')
  },
  beforeDestroy() {
    console.log('News Destroy')
  }
};
</script>

<style scoped>
.news {
  background-color: aqua;
}
</style>
